$(function () {
    obj.init();
});
var obj = new function () {
    return {
        type: null,
        init: function () {
            this.type = xhTool.getQuery('type');
            this.listener();
        },
        listener: function () {
            var $this = this;
            $('#bt_modal_confirm',parent.document).click(function () {
                $this.funObj().exportTablet();
            });
        },
        funObj: function () {
            var $this = this;
            return {
                exportTablet: function () {
                    location.href = baseUrl + 'device/exportRepairStat?type=' + $this.type;
                    xhExtra.setBtnNormal($('#bt_modal_confirm',parent.document));
                }
            }
        }
    }
};

